#include "suiteType.h"
#include "IVisitor.h"

suiteType::suiteType(const StmtTypeList& body, int nodeId):
    SimpleNode(nodeId),
    _body(body)
{
}
    
suiteType::~suiteType()
{
    _body.clear();
}
    
QString suiteType::type() const
{
    return "suiteType";
}
    

StmtTypeList suiteType::body()
{
    return _body;
}

void suiteType::setBody(const StmtTypeList& body)
{
    _body = body;
}

    
QString suiteType::toString() const
{
    return QString("suiteType[body=%1]").
                arg(_body.toString());
}
    
void suiteType::accept(IVisitor* visitor, const SimpleNodePtr& node)
{
    traverse(visitor);
}
    
void suiteType::traverse(IVisitor* visitor)
{
    _body.traverse(visitor);
}